package com.keeping.aiimagery.controller;


import com.keeping.aiimagery.entity.Goods;
import com.keeping.aiimagery.service.GoodsService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 充值选项 前端控制器
 * </p>
 *
 * @author keeping
 * @since 2023-04-05
 */
@Controller
@RequestMapping("/goods")
public class GoodsController {
    @Resource
    private GoodsService goodsService;

    @GetMapping("/findAll")
    @ResponseBody
    public List<Goods> findAll(){
        System.out.println(goodsService.findAll());
        return goodsService.findAll();
    }


}

